import './assets/main.css'
import './assets/font/iconfont.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate';
import { parse, stringify } from 'zipson'

import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()
pinia.use(createPersistedState({
  storage: sessionStorage,
  serializer: {
    deserialize: parse,
    serialize: stringify,
  },
}))
app.use(pinia)
app.use(router)
app.mount('#app')
